package main

import "fmt"

func main() {
	//.下面属于关键字的是（ABD）
	//A.func
	//B.struct
	//C.class
	//D.defer

	//-------------------------------------------------
	//%d表示输出十进制数字，+表示输出数值的符号。这里不表示取反。
	i := -5
	j := +5
	fmt.Printf("%+d %+d", i, j) //-5 +5

	//-------------------------------------------------
	t := Teacher{}
	t.ShowB() //teacher showB
}

type People struct{}

func (p *People) ShowA() {
	fmt.Println("showA")
	p.ShowB()
}
func (p *People) ShowB() {
	fmt.Println("showB")
}

// Teacher
// @Description: 继承people
type Teacher struct {
	People
}

func (t *Teacher) ShowB() {
	fmt.Println("teacher showB")
}
